package com.gzhryc.shared_device.iot.core;

import com.gzhryc.socket.message.ByteSocketMessage;

import java.io.Serializable;

public class IOTMessage extends ByteSocketMessage implements Serializable{

	private static final long serialVersionUID = 1L;
	
	protected String messageId;
	protected String deviceSn;
	protected String topic;

	protected String protocolType;		//报文的协议
	protected String cmd;				//报文命令

	public IOTMessage() {}
		
	public IOTMessage(byte[] bytes) {
		this.bytes = bytes;
	}

	public String getTopic() {
		return topic;
	}

	public void setTopic(String topic) {
		this.topic = topic;
	}

	public String getDeviceSn() {
		return deviceSn;
	}

	public void setDeviceSn(String deviceSn) {
		this.deviceSn = deviceSn;
	}

	public String getMessageId() {
		return messageId;
	}
	
	public void setMessageId(String messageId) {
		this.messageId = messageId;
	}

	public String getProtocolType() {
		return protocolType;
	}

	public void setProtocolType(String protocolType) {
		this.protocolType = protocolType;
	}

	public String getCmd() {
		return cmd;
	}

	public void setCmd(String cmd) {
		this.cmd = cmd;
	}
}
